package com.yanfan.dlt698_45;


import com.yanfan.common.ByteUtil;

/**
 * @author oliver foo
 * @description
 * @date 2023/3/22 15:23
 */
public class DLT698_45ExceptionResult {

    private final String exceptionCode;
    private final String exceptionMessage;


    public DLT698_45ExceptionResult(String exceptionCode, String message) {
        this.exceptionCode = exceptionCode;
        this.exceptionMessage = message;

    }

    public DLT698_45ExceptionResult(byte error) {
        this(ByteUtil.dumpHex(error), "error code:" + ByteUtil.dumpHex(error));

    }
}
